﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace br.com.SistemaChamados.Util
{
    public class MasterPageDefiner
    {
        public static string defineMasterPageByAccessRole(string accessRole)
        {
            string masterPageAddress = "";
            switch (accessRole.ToUpper())
            {
                case "USER":
                    masterPageAddress = "~/Pages/Master/MainUser.Master";
                    break;
                case "ANALYST":
                    masterPageAddress = "~/Pages/Master/MainAnalyst.Master";
                    break;
                case "TECHNICAL":
                    masterPageAddress = "~/Pages/Master/MainTechnical.Master";
                    break;
                case "ADMIN":
                    masterPageAddress = "~/Pages/Master/MainAdmin.Master";
                    break;
            }
            return masterPageAddress;
        }
    }
}